<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'basic';
/*******basic*******/
if($_RQ['op']=='basic'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('basic'.$merchid,$postdata);
		exi('设置成功');
	}
	$return['item']=$this->plugin_setting('basic'.$merchid);
	$htmls=array(
		'type'=>'edit',
		'desc'=>'参数设置',
		'edit_tab'=>true,
		'edits'=>array(
			array(
				'title'=>'基本信息',
				'list'=>array(
					array('type'=>'switch','title'=>'开启首次访问商城奖励','name'=>'inopen','isradio'=>1),
					array('type'=>'unitstring','unit'=>'个积分/人','title'=>'奖励','name'=>'infee1'),
					array('type'=>'unitstring','unit'=>'个金币/人','title'=>'奖励','name'=>'infee3'),
					array('type'=>'switch','title'=>'开启邀请奖励','name'=>'open','isradio'=>1),
					array('type'=>'unitstring','unit'=>'个积分/人','title'=>'邀请每人奖励','name'=>'fee1'),
					array('type'=>'unitstring','unit'=>'个金币/人','title'=>'邀请每人奖励','name'=>'fee3'),
				)
			),
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}
/*******basic*******/
/*******op*******/
